﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectQuestion.aspx.cs" Inherits="sysadmin_QuestionManager_SelectQuestion" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择试题</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lab_TitleInfo" runat="server" Text="添加试卷(第二步)"></asp:Label></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <th>
                    <asp:Label ID="lab_QuestionContent" runat="server" Text="试题内容"></asp:Label></th>
                <td>
                    <asp:TextBox ID="txtQuestionContent" runat="server"></asp:TextBox></td>
                <th>
                    <asp:Label ID="lab_QuestonType" runat="server" Text="题目类型"></asp:Label></th>
                <td>
                    <asp:DropDownList ID="ddlQuestionTypeList" runat="server" AppendDataBoundItems="True">
                        <asp:ListItem Selected="True" Value="null">请选择</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tree-bottom-bg" colspan="4" >
                    <asp:Button ID="btnSearch" runat="server" CssClass="inputBotton2" Text=" 搜 索 " OnClick="btnSearch_Click" />
                    <asp:Button ID="btnSave" runat="server" Text="保存并继续选题" CssClass="inputBotton2" OnClick="btnSave_Click" />
                    <asp:Button ID="btnPreview" runat="server" CssClass="inputBotton2" Text="预览选中试题"
                        OnClick="btnPreview_Click" Visible="False" />
                    <asp:Button ID="btnUp" runat="server" CssClass="inputBotton2" Text="返回上一步" OnClick="btnUp_Click" />
                    <asp:Button ID="btnNext" runat="server" CssClass="inputBotton2" Text="进入下一步" OnClick="btnNext_Click" /></td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" class="btnbg" width="100%">
            <tr>
                <td>
                    <asp:CheckBox ID="chbox_all" runat="server" AutoPostBack="True" OnCheckedChanged="chbox_all_CheckedChanged"
                        Text="全选" />
                    <asp:CheckBox ID="chbox_Unselect" runat="server" AutoPostBack="True" OnCheckedChanged="chbox_Unselect_CheckedChanged"
                        Text="反选" /></td>
            </tr>
        </table>
        <asp:GridView ID="gvQuestionList" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvQuestionList_RowDataBound"
            GridLines="None" BorderWidth="0px" CssClass="mainList">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkIsSelected" runat="server" />
                        <asp:Label ID="lblQuestionID" runat="server" Visible="False" Text='<%# DataBinder.Eval(Container.DataItem, "QuestionID") %>'></asp:Label>
                        <asp:Label ID="labQuestionContent" Visible="False" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "QuestionContent") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="试题内容">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text=""><%# DataBinder.Eval(Container.DataItem, "QuestionContent") %></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="QuestionTypeName" HeaderText="题目类型" />
                <asp:BoundField DataField="QuestionDiffculty" HeaderText="试题难度" />
                <asp:BoundField DataField="QuestionDefaultScore" HeaderText="试题分数" />
            </Columns>
        </asp:GridView>
        &nbsp;
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
